<template>
	<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
		<swiper-item v-for="(item,index) in dataList" :key="index">
			<view class="swiper-item">
				<image class="swiper-img" :src="item.imgUrl" mode=""></image>
			</view>
		</swiper-item>
		<!-- <swiper-item>
			<view class="swiper-item">
				<image class="swiper-img" src="../../static/img/2.webp" mode=""></image>
			</view>
		</swiper-item>
		<swiper-item>
			<view class="swiper-item">
				<image class="swiper-img" src="../../static/img/3.webp" mode=""></image>
			</view>
		</swiper-item> -->
	</swiper>
</template>

<script>
	export default {
		props:{
			dataList:Array
		},
		name:"indexSwiper",
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped>
swiper{
	width: 100%;
	height: 400rpx;
}
.swiper-img{
	width: 100%;
	height: 400rpx;
	font-size: 28rpx;
}
</style>